import 'package:flutter/material.dart';
import 'package:wanxiang_app/widgets/tabs.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

import 'account_textField2.dart';
typedef void ClickCallBack(String content);
class PhoneDialog extends Dialog {
  ClickCallBack callBack;
  PhoneDialog({required Key key, required this.callBack}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Material(
        //透明层
        type: MaterialType.transparency,
        child: Stack(
          children: <Widget>[
            Positioned(
                bottom: 0,
                child:
                Container(
                  height: 330.h,
                  width: MediaQuery.of(context).size.width,
                  decoration: BoxDecoration(
                    borderRadius: BorderRadius.only(topRight: Radius.circular(20.r),topLeft: Radius.circular(20.r))
                  ),
                  child: Column(
                    children: [
                      Text('更换手机号',style: TextStyle(color: Color(0xFF333333),fontSize: 15.sp),),
                      Row(
                        children: [
                          Text('原手机号',style: TextStyle(
                            color: Color(0xFF333333),
                            fontSize: 14.sp
                          ),),
                          Container(
                            height: 38.h,
                            width: 230.w,
                            child:  AccountEdit2Text(
                              //获取返回的输入内容
                              hitText: '请输入',
                              icon: '',
                              contentStrCallBack: (content) {}, key: ValueKey('phone'),
                            ),
                          )
                        ],
                      )
                    ],
                  )
                )

             ),

          ],
        )
    );
  }
}